﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace CSWindows
{
    public partial class Form_welcome : Form
    {
        public Form_welcome()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button_licenseupload_Click(object sender, EventArgs e)
        {
            OpenFileDialog Openfile = new OpenFileDialog();
            Openfile.ShowDialog();
        }

        private void button_login_Click(object sender, EventArgs e)
        {
            if (textBox_key.Text == "")
            {
                MessageBox.Show("请输入正确密码！", "Warning!", MessageBoxButtons.OK);
            }
            //MessageBox.Show("证书或密码错误", "Warning!", MessageBoxButtons.OK);
            //this.Dispose();
            if (textBox_key.Text != "")
            {
                this.Visible = false;
                Form_login f = new Form_login();
                f.Show();
            }
        }

        private void button_findthekey_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Form_findmykey f = new Form_findmykey();
            f.Show();
        }

        private void button_creat_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Form_create f = new Form_create();
            f.Show();
        }

        private void button_exit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

    }
}
